import request from '@/utils/request'

// 查询属性管理列表
export function listProperties(query) {
  return request({
    url: '/house/properties/list',
    method: 'get',
    params: query
  })
}

// 查询属性管理详细
export function getProperties(houseId) {
  return request({
    url: '/house/properties/' + houseId,
    method: 'get'
  })
}

// 新增属性管理
export function addProperties(data) {
  return request({
    url: '/house/properties',
    method: 'post',
    data: data
  })
}

// 修改属性管理
export function updateProperties(data) {
  return request({
    url: '/house/properties',
    method: 'put',
    data: data
  })
}

// 删除属性管理
export function delProperties(houseId) {
  return request({
    url: '/house/properties/' + houseId,
    method: 'delete'
  })
}
